<template>
	<view class="PaymentResult">
		<view class="payment f-background width-height100 text-align radius12">
			<!-- <image class="icons" :src="`${OnlineStatic}sb.png`" mode="widthFix" v-if="!index"></image> -->
			<image class="icons" :src="`${OnlineStatic}cg.png`" mode="widthFix"></image>
			<view class="font-weight-600 color3 size-32 margin-bottom-16">提现申请成功</view>
			<view class="font-weight-400 color6 size-24">我们会在1个工作日内为你审核</view>
			<up-button type="primary" :plain="true"
				:customStyle="{width: '342rpx',height: '76rpx',borderRadius: '8rpx',marginTop: '108rpx',background: '#F7F7F7'}"
				color="#E5E5E5" @click="onJumpPage(1)">
				<text class="color-6 font-weight-500 size-28">查看提现记录</text>
			</up-button>
			<up-button type="primary" :plain="true"
				:customStyle="{width: '342rpx',height: '76rpx',borderRadius: '8rpx',marginTop: '20rpx'}"
				color="#E5E5E5" @click="onJumpPage(0)">
				<text class="color-6 font-weight-500 size-28">返回首页</text>
			</up-button>
		</view>
	</view>
</template>

<script>
	import { OnlineStatic } from "@/api/index"
	export default {
		data() {
			return {
				index: false,
				OnlineStatic
			}
		},
		methods: {
			onJumpPage(type) {
				if(type == 1) {
					uni.redirectTo({
						url: "/packagePerson/account/detailed?type=1"
					});
					return
				}
				uni.switchTab({
					url: "/pages/index/index"
				});
			}
		}
	}
</script>

<style lang="scss">
	.PaymentResult {
		padding: 16rpx;
		width: 100%;
		height: 100vh;
		box-sizing: border-box;

		.payment {
			padding: 112rpx 16rpx 16rpx;
			box-sizing: border-box;
			.icons {
				width: 96rpx;
				height: 96rpx;
				margin: 0 auto 40rpx;
			}
		}

	}
</style>